#include "SpriteStar.h"
#include "CGlobal.h"
using namespace cocos2d;
SpriteStar::SpriteStar(void)
{
}

SpriteStar::~SpriteStar(void)
{
}

SpriteStar * SpriteStar::node( const std::string arrayPic[],int nNum,float fIntervalTime,bool bRepeat)
{
	SpriteStar *pNode=new SpriteStar;
	if (pNode)
	{
		pNode->autorelease();
		if (pNode->init(arrayPic,nNum,fIntervalTime,bRepeat))
		{
			return pNode;
		}
	}
	return NULL;
}


bool SpriteStar::init(const std::string arrayPic[],int nNum,float fIntervalTime,bool bRepeat)
{
	if (!CAnimationSprite::init(arrayPic,nNum,fIntervalTime,bRepeat))
	{
		return false;
	}
	
	
	return true;
	
}

